#include<stdio.h>
#include<math.h>

int main(){
	/* Members declarations*/	
	double length;
	double width;
	double area;
	double perimeter;
	double diagonal;

	/*Get parameters from user*/
	printf("Enter length of rectangle:");
	scanf("%lf", &length);
	printf("Enter width of rectangle:");	
	scanf("%lf", &width);

	/*Compute results*/
	area = width * length;
	perimeter = (width + length) * 2;
	diagonal =  sqrt(pow(width,2) + pow(length,2));

	/*Print results to user*/
	printf("The area of rectangle is: %.1lf\n", area);
	printf("The perimeter of rectangle is: %.1lf\n", perimeter);
	printf("The diagonal of rectangle is: %.1lf\n", diagonal);

	return 0;
}